/**
 * Project Name:dubot-server
 * File Name:BooStrap.java
 * Package Name:com
 * Date:2017年5月4日下午5:20:15
 * Copyright (c) 2017, 杭州知时信息科技有限公司 All Rights Reserved.
 *
*/

package com;

import java.io.IOException;

import org.apache.log4j.PropertyConfigurator;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * ClassName:BooStrap <br/>
 * Function: <br/>
 * Date:     2017年5月4日 下午5:20:15 <br/>
 * @author   guooo
 * @version  
 * @since    JDK 1.6
 * @see 	 
 */
public class BooStrap {
    public static void main(String[] args) throws IOException {
        PropertyConfigurator.configure("src/main/resources/log4j.properties");
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[]{"spring.xml","dubbo-provider.xml","dubbo-consumer.xml"});
//      ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[]{"spring.xml"});
        context.start();
        System.out.println("service begin-->");
        
//      MettingService mettingService = (MettingService) context.getBean("mettingService");
//      mettingService.meetEacher();
//      MoneyService moneyService = (MoneyService) context.getBean("moneyService");
//      moneyService.printMoney(1999);
        System.in.read();
    }
}
